package day5.date;

import java.time.LocalDate;
import java.time.Period;

/**
 * @author joker
 * @date 2022/4/16 0016 - 0:33
 */
public class LocalTimeTest {
    public static void main(String[] args) {
        LocalDate start = LocalDate.of(2018, 3, 28);
        LocalDate now = LocalDate.now();
//        System.out.println(now.toEpochDay()-start.toEpochDay());
        Period period = Period.between(LocalDate.of(2022,4,14),LocalDate.of(2022,4,16));
        System.out.println(period);


    }
}
